<include file="application/walletyhbbadmin/view/public/left.html"/>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>商品管理</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3><a href="{:U('Goods/add_lists')}" class="actionBtn add">添加商品</a>商品管理</h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
    <tr>
        <th align="center">ID</th>
        <th align="center">商品名称</th>
        <th align="center">商品编号</th>
        <th align="center">商品分类</th>
        <th align="center">点击数</th>
        <th align="center">评论数</th>
        <th align="center">市场价</th>
        <th align="center">最后修改时间</th>
        <th align="center">是否上架</th>
        <th align="center">操作</th>
    </tr>
    <volist name="goods" id="vo" empty="$empty">
    <tr>
        <td align="center">{$vo.goods_id}</td>
        <td align="center">{$vo.goods_name}</td>
        <td align="center">{$vo.goods_sn}</td>
        <td align="center">{$vo.typename}</td>
        <td align="center">{$vo.click_count}</td>
        <td align="center">{$vo.comment_count}</td>
        <td align="center">{$vo.market_price}</td>
        <td align="center">{$vo.last_update|date="Y-m-d H:i:s",###}</td>
        <td align="center">
            <eq name="vo.is_on_sale" value="1">
                显示<span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('Goods/updatexianshi',array('id'=>$vo.id))}" style="color:#fff">隐藏</a>&nbsp;</span>
            </eq>
            <eq name="vo.is_on_sale" value="2">
                隐藏   <span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('Goods/updatexianshi',array('id'=>$vo.id))}" style="color:#fff">显示</a>&nbsp;</span>
            </eq>
        </td>
       
        <td align="center">
            <a href="/walletyhbbadmin/goods/info/id/{$vo.id}">查看详情</a>
        <a href="{:U('Goods/edit',array('id'=>$vo['id']))}" >修改</a>
        <a href="{:U('Goods/deletes',array('id'=>$vo['id']))}" onClick="javascript:if(!confirm('确定要删除吗？'))  return  false;">删除</a>
        </td>
    </tr>
    </volist>
    </table>

</div>

</div>

<div class="clear"></div>
<center>{$page}</center>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>